{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="tabs-content" data-origin="additem">
<form method="post" id="form_addAgent" enctype="multipart/form-data">
        <!--<div class="formitems inline">-->
            <!--<label class="fi-name">发布人：</label>-->
            <!--<div class="form-controls">-->
                <!--{$nickname}-->
                <!--<span class="fi-help-text"></span>-->
            <!--</div>-->
        <!--</div>-->

        <div class="formitems inline">
            <label class="fi-name">发布时间：</label>
            <div class="form-controls">
                {'Y-m-d H:i:s'|date:$topic.addtime}
                <span class="fi-help-text"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>标题：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="large" name="title" value="{$topic.title}">
                <span class="fi-help-text"></span>
            </div>
        </div>

        {upload_image_widget($pic)}

        <div class="formitems inline">
            <label class="fi-name">收藏数：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="collect_num" value="{$topic.collect_num}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">观点数：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="view_num" value="{$topic.view_num}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">排序：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="serial" value="{$topic.serial}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        
        <!--<div class="formitems inline">-->
            <!--<label class="fi-name">是否设为热门：</label>-->
            <!--<div class="form-controls">-->
                <!--<div class="radio-group">-->
                    <!--<label><input type="radio" name="is_hot" value="1" {if $topic.is_hot == 1}checked="checked"{/if} />是</label>-->
                    <!--<label><input type="radio" name="is_hot" value="0" {if $topic.is_hot == 0}checked="checked"{/if} />否</label>-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->


        <div class="formitems inline">
            <label class="fi-name">话题内容：</label>
            <div class="form-controls">
                <textarea name="contents" class='large'>{$topic.contents}</textarea>
                <span class="fi-help-text"></span>
            </div>
        </div>
        {upload_image_widget($pic_data)}
        <div class="formactions mgl180">
            <input type="hidden" name="act" value="edit">
            <input type="hidden" name="topic_id" value="{$topic_id}">
            <button class="btn btn-blue"><i class="gicon-ok white"></i>提交</button>
        </div>


</form>
</div>
{/block}
{block name="css"}
{literal}
<style>
    #jpops .fi-name{width:65px;}
    #jpops .form-controls{margin-left:75px;}
    #j-item-extend li{margin-bottom:10px;}
    .edit_item_tip{font-size: 18px;color: #a0a0a0;background-color: inherit;text-decoration: none;margin: 20px 180px;}
</style>
{/literal}
{/block}
{block name="js"}
<script type="text/javascript" src="__ACPJS__/AcpArticle/user_save.js?version={$version}"></script>
<script src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script src="__ACPJS__/AcpItem/add_item_step1.js?version={$version}"></script>
{/block}
